package com.red.star.wechat.data.entity;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

/**
 * @Author: WangYaHui
 * @Description:返现
 * @Date: Created in 14:13 2018/9/7
 */

@Data
@Table(name = "t_convert_money")
public class ConvertMoney extends BaseEntity {
    /**
     * 姓名
     */
    private String userName;
    /**
     * 手机号
     */
    private String mobile;
    /**
     * 订单号
     */
    private String orderNo;
    /**
     * 品牌
     */
    private String brandName;
    /**
     * 实付金额
     */
    private String money;
    /**
     * 优惠券ID
     */
    private Integer couponId;
    /**
     * 优惠券名称
     */
    private String couponName;
    /**
     * 返现内容
     */
    private String content;
    /**
     * 优惠券/包来源
     */
    private String channel;
    /**
     * 批量导入卷号
     */
    private String couponNo;
    /**
     * 0:未操作,1:领取成功,2:领取失败
     */
    private Integer status;
    /**
     * 0:页面领取,1:批量
     */
    private Integer isBatch;
    /**
     * 归属券包组
     */
    @Transient
    private String couponPackageName;
    /**
     * 核销开始时间
     */
    @Transient
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startTime;
    /**
     * 核销结束时间
     */
    @Transient
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    /**
     * 返现时间
     */
    private Date createTime;
    /**
     * 修改返现时间
     */
    private Date updateTime;

    @Transient
    private String couponIdString;

    private String mallCode;

    @Transient
    private String mallName;

    @Transient
    private Integer ticketType;

    @Transient
    private Integer isUse;

    @Transient
    private Integer ticketId;

    @Transient
    private Integer promotionTicketID;

}
